<?php
$this->breadcrumbs=array(
	'Events' . ' Management'=>array('index'),
	'View Events',
);
 ?><h3 class="header smaller lighter blue">View Events</h3>
<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
                'event_code',
		'main_title',
		'sub_title',
		'location',
		'address',
		'contact',
		'start_date',
		'start_time',
                'priority',
                array(
                    'name'=>'tag',
                    'value'=>  MyFunctionCustom::getTag($model->tag)
                ),            
                array(
                    'name'=>'category_id',
                    'value'=>$model->category->name
                ),            
                array(
                    'name'=>'gallery_id',
                    'value'=>$model->gallery->name
                ),            
                array(
                    'name'=>'language_id',
                    'value'=>$model->language->name
                ),            
                array(
                  'name'=>'map',
                  'type'=>'html',
                  'value'=>CHtml::image('/booking/timthumb.php?src='.Yii::app()->createUrl("/data/map/".$model->map).'&h=150&w=150')
                ),
                array(
                  'name'=>'cover_image',
                  'type'=>'html',
                  'value'=>CHtml::image('/booking/timthumb.php?src='.Yii::app()->createUrl("/data/cover/".$model->cover_image).'&h=150&w=150')
                ),
                array(
                    'name'=>'description',
                    'type'=>'html',
                )
	),
)); ?>